<?php

namespace Home\Controller;
/**
 * 商品分类
 * User: linkwhy
 * Date: 2015/10/26
 * Time: 10:23
 */
class GoodsClassController extends HomeController{

    private $mode = '';

    public function _initialize(){
        $this->mode = M('goods_class');
    }

    public function index(){
        $list = $this->mode->field(true)->select();
        $data['uid'] = $_SESSION['userid'];
        $data['shopid'] = $_SESSION['shopid'];
        $this->assign('data', $data);
        $this->assign('list', $list);
        $this->display();
    }

}
